|
DEFAULT NET GAME
This command will automatically set up a net game in one command.
Return Integer=DEFAULT NET GAME(Gamename, Playername, Number Of Players, Game Type)
Gamename
String
The name of the game, string
Playername
String
The players name, string
Number Of Players
Integer
The number of players allowed in the game session
Game Type
Integer
Specify a game type of 1 to make the game pass host control to another player if the host leaves play. Specify a game type value of 2 if you want to create a client server game where the host player channels all communication to the other players
The command also returns the Player Number that you can use to distinguish your player from other network players
It will create a game if non exists on the most suitable network connection, and join a game that already exists. It will select a LAN connection first, then a TCP/IP connection and then Serial or Modem connection. You can specify both a Game name and a Player name, as well as the number of players allowed in the game session. You can also specify a flag that determines the kind of game that will be created. Specify a game type of 1 to make the game pass host control to another player if the host leaves play. Specify a game type value of 2 if you want to create a client server game where the host player channels all communication to the other players. The command also returns the Player Number that you can use to distinguish your player from other network players.
GameName$="SHOOT OUT": PlayerName$="MIGHTY MOUSE" :PlayerMax=4 : KindOfGame=1
playersnumber=default net game( GameName$, PlayerName$, PlayerMax,KindOfGame)
rem Was game created successfully
if net game exists()=1
print : print "GAME SESSION STARTED"
else
print "GAME SESSION NOT STARTED"
endif
end
MULTIPLAYER Commands Menu
Index
|